package com.cn.wanxi.dao.impl;

import com.cn.wanxi.dao.NewsDao;
import com.cn.wanxi.model.NewsModel;
import com.cn.wanxi.util.GetSQLSession;

import java.util.List;

public class NewsImpl implements NewsDao {
    @Override
    public List<NewsModel> findAll() {
        return GetSQLSession.getSqlSession().selectList("com.cn.wanxi.dao.NewsDao.findAll");
    }
}
